package com.quaidi.smartlocker.annotation;

import com.quaidi.smartlocker.enums.UserRole;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 权限验证注解
 * 
 * @author QuaiDi
 * @since 2025-08-26
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface RequireRole {
    /**
     * 需要的角色
     */
    UserRole[] value() default {UserRole.USER};
}